package testcases;
import ball.Ball;
import junit.framework.TestCase;

public class TestBall extends TestCase{
	private Ball ball; 
	
	public void testBallConstructor() {
		ball = new Ball();
		int result = ball.getCol();
		assertEquals(result, 0);
	}
	
	public void testBallGetRow() {
		ball = new Ball(0,0,'4');
		int result = ball.getRow();
		assertEquals(result, 0);
	}
	
	public void testBallGetCol() {
		ball = new Ball(0,5,'4');
		int result = ball.getCol();
		assertEquals(result, 5);
	}
	public void testBallSetCol() {
		ball = new Ball(0,5,'4');
		ball.setCol(2);
		int result = ball.getCol();
		assertEquals(result, 2);
	}
	public void testBallSetRow() {
		ball = new Ball(0,5,'4');
		ball.setRow(2);
		int result = ball.getRow();
		assertEquals(result, 2);
	}
	public void testBallType() {
		ball = new Ball(0,5,'4');
		char result = ball.getType();
		assertEquals(result, '4');
	}
}